/*
 * Renderer3D - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
public class Renderer3D extends Renderer2D {
	private static int anInt1524 = -20714;
	private static int anInt1525;
	private static boolean aBoolean1526;
	public static boolean aBoolean1527 = true;
	static boolean aBoolean1528;
	static boolean aBoolean1529;
	public static boolean aBoolean1530 = true;
	public static int anInt1531;
	public static int anInt1532;
	public static int anInt1533;
	public static int[] anIntArray1534 = new int[512];
	public static int[] anIntArray1535 = new int[2048];
	public static int[] anIntArray1536 = new int[2048];
	public static int[] anIntArray1537 = new int[2048];
	public static int[] anIntArray1538;
	static int anInt1539;
	public static IndexedSprite[] aIndexedSpriteArray1540;
	static boolean[] aBooleanArray1541;
	static int[] anIntArray1542;
	static int anInt1543;
	static int[][] anIntArrayArray1544;
	static int[][] anIntArrayArray1545;
	public static int[] anIntArray1546;
	public static int anInt1547;
	public static int[] anIntArray1548;
	static int[][] anIntArrayArray1549;

	public static final void method503(boolean bool) {
		Renderer3D.anIntArray1534 = null;
		Renderer3D.anIntArray1534 = null;
		Renderer3D.anIntArray1536 = null;
		Renderer3D.anIntArray1537 = null;
		Renderer3D.anIntArray1538 = null;
		Renderer3D.aIndexedSpriteArray1540 = null;
		Renderer3D.aBooleanArray1541 = null;
		Renderer3D.anIntArray1542 = null;
		Renderer3D.anIntArrayArray1544 = null;
		if (bool) {
			for (int i = 1; i > 0; i++) {
				/* empty */
			}
		}
		Renderer3D.anIntArrayArray1545 = null;
		Renderer3D.anIntArray1546 = null;
		Renderer3D.anIntArray1548 = null;
		Renderer3D.anIntArrayArray1549 = null;
	}

	public static final void method504(int i) {
		i = 19 / i;
		Renderer3D.anIntArray1538 = new int[Renderer2D.height];
		for (int i_0_ = 0; i_0_ < Renderer2D.height; i_0_++) {
			Renderer3D.anIntArray1538[i_0_] = Renderer2D.width * i_0_;
		}
		Renderer3D.anInt1532 = Renderer2D.width / 2;
		Renderer3D.anInt1533 = Renderer2D.height / 2;
	}

	public static final void method505(int i, int i_1_, int i_2_) {
		if (i_1_ != 7) {
			Renderer3D.aBoolean1526 = !Renderer3D.aBoolean1526;
		}
		Renderer3D.anIntArray1538 = new int[i];
		for (int i_3_ = 0; i_3_ < i; i_3_++) {
			Renderer3D.anIntArray1538[i_3_] = i_2_ * i_3_;
		}
		Renderer3D.anInt1532 = i_2_ / 2;
		Renderer3D.anInt1533 = i / 2;
	}

	public static final void method506(byte i) {
		if (i == 71) {
			Renderer3D.anIntArrayArray1544 = null;
			for (int i_4_ = 0; i_4_ < 50; i_4_++) {
				Renderer3D.anIntArrayArray1545[i_4_] = null;
			}
		}
	}

	public static final void method507(byte i, int i_5_) {
		if (i != 7) {
			for (int i_6_ = 1; i_6_ > 0; i_6_++) {
				/* empty */
			}
		}
		if (Renderer3D.anIntArrayArray1544 == null) {
			Renderer3D.anInt1543 = i_5_;
			if (Renderer3D.aBoolean1527) {
				Renderer3D.anIntArrayArray1544 = new int[Renderer3D.anInt1543][16384];
			} else {
				Renderer3D.anIntArrayArray1544 = new int[Renderer3D.anInt1543][65536];
			}
			for (int i_7_ = 0; i_7_ < 50; i_7_++) {
				Renderer3D.anIntArrayArray1545[i_7_] = null;
			}
		}
	}

	public static final void method508(Archive archive, int i) {
		if (i != -17551) {
			for (int i_8_ = 1; i_8_ > 0; i_8_++) {
				/* empty */
			}
		}
		Renderer3D.anInt1539 = 0;
		for (int i_9_ = 0; i_9_ < 50; i_9_++) {
			try {
				Renderer3D.aIndexedSpriteArray1540[i_9_] = new IndexedSprite(
					archive, String.valueOf(i_9_), 0);
				if (Renderer3D.aBoolean1527
					&& Renderer3D.aIndexedSpriteArray1540[i_9_].anInt1522 == 128) {
					Renderer3D.aIndexedSpriteArray1540[i_9_].method496(0);
				} else {
					Renderer3D.aIndexedSpriteArray1540[i_9_].method497();
				}
				Renderer3D.anInt1539++;
			} catch (Exception exception) {
				/* empty */
			}
		}
	}

	public static final int method509(int i, int i_10_) {
		if (Renderer3D.anIntArray1542[i] != 0) {
			return Renderer3D.anIntArray1542[i];
		}
		int i_11_ = 0;
		int i_12_ = 0;
		int i_13_ = 0;
		int i_14_ = Renderer3D.anIntArrayArray1549[i].length;
		for (int i_15_ = 0; i_15_ < i_14_; i_15_++) {
			i_11_ += Renderer3D.anIntArrayArray1549[i][i_15_] >> 16 & 0xff;
			i_12_ += Renderer3D.anIntArrayArray1549[i][i_15_] >> 8 & 0xff;
			i_13_ += Renderer3D.anIntArrayArray1549[i][i_15_] & 0xff;
		}
		if (i_10_ != 0) {
			return Renderer3D.anInt1525;
		}
		int i_16_ = (i_11_ / i_14_ << 16) + (i_12_ / i_14_ << 8) + i_13_ / i_14_;
		i_16_ = Renderer3D.method513(i_16_, 1.4);
		if (i_16_ == 0) {
			i_16_ = 1;
		}
		Renderer3D.anIntArray1542[i] = i_16_;
		return i_16_;
	}

	public static final void method510(int i, int i_17_) {
		if (i_17_ != 9) {
			Renderer3D.anInt1524 = -48;
		}
		if (Renderer3D.anIntArrayArray1545[i] != null) {
			Renderer3D.anIntArrayArray1544[Renderer3D.anInt1543++] = Renderer3D.anIntArrayArray1545[i];
			Renderer3D.anIntArrayArray1545[i] = null;
		}
	}

	public static final int[] method511(int i) {
		Renderer3D.anIntArray1546[i] = Renderer3D.anInt1547++;
		if (Renderer3D.anIntArrayArray1545[i] != null) {
			return Renderer3D.anIntArrayArray1545[i];
		}
		int[] is;
		if (Renderer3D.anInt1543 > 0) {
			is = Renderer3D.anIntArrayArray1544[--Renderer3D.anInt1543];
			Renderer3D.anIntArrayArray1544[Renderer3D.anInt1543] = null;
		} else {
			int i_18_ = 0;
			int i_19_ = -1;
			for (int i_20_ = 0; i_20_ < Renderer3D.anInt1539; i_20_++) {
				if (Renderer3D.anIntArrayArray1545[i_20_] != null
					&& (Renderer3D.anIntArray1546[i_20_] < i_18_ || i_19_ == -1)) {
					i_18_ = Renderer3D.anIntArray1546[i_20_];
					i_19_ = i_20_;
				}
			}
			is = Renderer3D.anIntArrayArray1545[i_19_];
			Renderer3D.anIntArrayArray1545[i_19_] = null;
		}
		Renderer3D.anIntArrayArray1545[i] = is;
		IndexedSprite class50_sub1_sub1_sub3 = Renderer3D.aIndexedSpriteArray1540[i];
		int[] is_21_ = Renderer3D.anIntArrayArray1549[i];
		if (Renderer3D.aBoolean1527) {
			Renderer3D.aBooleanArray1541[i] = false;
			for (int i_22_ = 0; i_22_ < 4096; i_22_++) {
				int i_23_ = (is[i_22_] = (is_21_[class50_sub1_sub1_sub3.pixels[i_22_]] & 0xf8f8ff));
				if (i_23_ == 0) {
					Renderer3D.aBooleanArray1541[i] = true;
				}
				is[i_22_ + 4096] = i_23_ - (i_23_ >>> 3) & 0xf8f8ff;
				is[i_22_ + 8192] = i_23_ - (i_23_ >>> 2) & 0xf8f8ff;
				is[i_22_ + 12288] = i_23_ - (i_23_ >>> 2) - (i_23_ >>> 3) & 0xf8f8ff;
			}
		} else {
			if (class50_sub1_sub1_sub3.width == 64) {
				for (int i_24_ = 0; i_24_ < 128; i_24_++) {
					for (int i_25_ = 0; i_25_ < 128; i_25_++) {
						is[i_25_ + (i_24_ << 7)] = is_21_[(class50_sub1_sub1_sub3.pixels[(i_25_ >> 1)
							+ (i_24_ >> 1 << 6)])];
					}
				}
			} else {
				for (int i_26_ = 0; i_26_ < 16384; i_26_++) {
					is[i_26_] = is_21_[class50_sub1_sub1_sub3.pixels[i_26_]];
				}
			}
			Renderer3D.aBooleanArray1541[i] = false;
			for (int i_27_ = 0; i_27_ < 16384; i_27_++) {
				is[i_27_] &= 0xf8f8ff;
				int i_28_ = is[i_27_];
				if (i_28_ == 0) {
					Renderer3D.aBooleanArray1541[i] = true;
				}
				is[i_27_ + 16384] = i_28_ - (i_28_ >>> 3) & 0xf8f8ff;
				is[i_27_ + 32768] = i_28_ - (i_28_ >>> 2) & 0xf8f8ff;
				is[i_27_ + 49152] = i_28_ - (i_28_ >>> 2) - (i_28_ >>> 3) & 0xf8f8ff;
			}
		}
		return is;
	}

	public static final void method512(double d, byte i) {
		d += Math.random() * 0.03 - 0.015;
		int i_29_ = 0;
		for (int i_30_ = 0; i_30_ < 512; i_30_++) {
			double d_31_ = (i_30_ / 8) / 64.0 + 0.0078125;
			double d_32_ = (i_30_ & 0x7) / 8.0 + 0.0625;
			for (int i_33_ = 0; i_33_ < 128; i_33_++) {
				double d_34_ = i_33_ / 128.0;
				double d_35_ = d_34_;
				double d_36_ = d_34_;
				double d_37_ = d_34_;
				if (d_32_ != 0.0) {
					double d_38_;
					if (d_34_ < 0.5) {
						d_38_ = d_34_ * (1.0 + d_32_);
					} else {
						d_38_ = d_34_ + d_32_ - d_34_ * d_32_;
					}
					double d_39_ = 2.0 * d_34_ - d_38_;
					double d_40_ = d_31_ + 0.3333333333333333;
					if (d_40_ > 1.0) {
						d_40_--;
					}
					double d_41_ = d_31_;
					double d_42_ = d_31_ - 0.3333333333333333;
					if (d_42_ < 0.0) {
						d_42_++;
					}
					if (6.0 * d_40_ < 1.0) {
						d_35_ = d_39_ + (d_38_ - d_39_) * 6.0 * d_40_;
					} else if (2.0 * d_40_ < 1.0) {
						d_35_ = d_38_;
					} else if (3.0 * d_40_ < 2.0) {
						d_35_ = d_39_ + ((d_38_ - d_39_) * (0.6666666666666666 - d_40_) * 6.0);
					} else {
						d_35_ = d_39_;
					}
					if (6.0 * d_41_ < 1.0) {
						d_36_ = d_39_ + (d_38_ - d_39_) * 6.0 * d_41_;
					} else if (2.0 * d_41_ < 1.0) {
						d_36_ = d_38_;
					} else if (3.0 * d_41_ < 2.0) {
						d_36_ = d_39_ + ((d_38_ - d_39_) * (0.6666666666666666 - d_41_) * 6.0);
					} else {
						d_36_ = d_39_;
					}
					if (6.0 * d_42_ < 1.0) {
						d_37_ = d_39_ + (d_38_ - d_39_) * 6.0 * d_42_;
					} else if (2.0 * d_42_ < 1.0) {
						d_37_ = d_38_;
					} else if (3.0 * d_42_ < 2.0) {
						d_37_ = d_39_ + ((d_38_ - d_39_) * (0.6666666666666666 - d_42_) * 6.0);
					} else {
						d_37_ = d_39_;
					}
				}
				int i_43_ = (int) (d_35_ * 256.0);
				int i_44_ = (int) (d_36_ * 256.0);
				int i_45_ = (int) (d_37_ * 256.0);
				int i_46_ = (i_43_ << 16) + (i_44_ << 8) + i_45_;
				i_46_ = Renderer3D.method513(i_46_, d);
				if (i_46_ == 0) {
					i_46_ = 1;
				}
				Renderer3D.anIntArray1548[i_29_++] = i_46_;
			}
		}
		for (int i_47_ = 0; i_47_ < 50; i_47_++) {
			if (Renderer3D.aIndexedSpriteArray1540[i_47_] != null) {
				int[] is = Renderer3D.aIndexedSpriteArray1540[i_47_].palette;
				Renderer3D.anIntArrayArray1549[i_47_] = new int[is.length];
				for (int i_48_ = 0; i_48_ < is.length; i_48_++) {
					Renderer3D.anIntArrayArray1549[i_47_][i_48_] = Renderer3D
						.method513(is[i_48_], d);
					if ((Renderer3D.anIntArrayArray1549[i_47_][i_48_] & 0xf8f8ff) == 0
						&& i_48_ != 0) {
						Renderer3D.anIntArrayArray1549[i_47_][i_48_] = 1;
					}
				}
			}
		}
		if (i == 6) {
		} else {
			return;
		}
		for (int i_49_ = 0; i_49_ < 50; i_49_++) {
			Renderer3D.method510(i_49_, 9);
		}
	}

	public static int method513(int i, double d) {
		double d_50_ = (i >> 16) / 256.0;
		double d_51_ = (i >> 8 & 0xff) / 256.0;
		double d_52_ = (i & 0xff) / 256.0;
		d_50_ = Math.pow(d_50_, d);
		d_51_ = Math.pow(d_51_, d);
		d_52_ = Math.pow(d_52_, d);
		int i_53_ = (int) (d_50_ * 256.0);
		int i_54_ = (int) (d_51_ * 256.0);
		int i_55_ = (int) (d_52_ * 256.0);
		return (i_53_ << 16) + (i_54_ << 8) + i_55_;
	}

	public static final void method514(int i, int i_56_, int i_57_, int i_58_, int i_59_,
		int i_60_, int i_61_, int i_62_, int i_63_) {
		int i_64_ = 0;
		int i_65_ = 0;
		if (i_56_ != i) {
			i_64_ = (i_59_ - i_58_ << 16) / (i_56_ - i);
			i_65_ = (i_62_ - i_61_ << 15) / (i_56_ - i);
		}
		int i_66_ = 0;
		int i_67_ = 0;
		if (i_57_ != i_56_) {
			i_66_ = (i_60_ - i_59_ << 16) / (i_57_ - i_56_);
			i_67_ = (i_63_ - i_62_ << 15) / (i_57_ - i_56_);
		}
		int i_68_ = 0;
		int i_69_ = 0;
		if (i_57_ != i) {
			i_68_ = (i_58_ - i_60_ << 16) / (i - i_57_);
			i_69_ = (i_61_ - i_63_ << 15) / (i - i_57_);
		}
		if (i <= i_56_ && i <= i_57_) {
			if (i < Renderer2D.bottomY) {
				if (i_56_ > Renderer2D.bottomY) {
					i_56_ = Renderer2D.bottomY;
				}
				if (i_57_ > Renderer2D.bottomY) {
					i_57_ = Renderer2D.bottomY;
				}
				if (i_56_ < i_57_) {
					i_60_ = i_58_ <<= 16;
					i_63_ = i_61_ <<= 15;
					if (i < 0) {
						i_60_ -= i_68_ * i;
						i_58_ -= i_64_ * i;
						i_63_ -= i_69_ * i;
						i_61_ -= i_65_ * i;
						i = 0;
					}
					i_59_ <<= 16;
					i_62_ <<= 15;
					if (i_56_ < 0) {
						i_59_ -= i_66_ * i_56_;
						i_62_ -= i_67_ * i_56_;
						i_56_ = 0;
					}
					if (i != i_56_ && i_68_ < i_64_ || i == i_56_ && i_68_ > i_66_) {
						i_57_ -= i_56_;
						i_56_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_56_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_60_ >> 16, i_58_ >> 16, i_63_ >> 7, i_61_ >> 7);
							i_60_ += i_68_;
							i_58_ += i_64_;
							i_63_ += i_69_;
							i_61_ += i_65_;
							i += Renderer2D.width;
						}
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_60_ >> 16, i_59_ >> 16, i_63_ >> 7, i_62_ >> 7);
							i_60_ += i_68_;
							i_59_ += i_66_;
							i_63_ += i_69_;
							i_62_ += i_67_;
							i += Renderer2D.width;
						}
					} else {
						i_57_ -= i_56_;
						i_56_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_56_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_58_ >> 16, i_60_ >> 16, i_61_ >> 7, i_63_ >> 7);
							i_60_ += i_68_;
							i_58_ += i_64_;
							i_63_ += i_69_;
							i_61_ += i_65_;
							i += Renderer2D.width;
						}
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_59_ >> 16, i_60_ >> 16, i_62_ >> 7, i_63_ >> 7);
							i_60_ += i_68_;
							i_59_ += i_66_;
							i_63_ += i_69_;
							i_62_ += i_67_;
							i += Renderer2D.width;
						}
					}
				} else {
					i_59_ = i_58_ <<= 16;
					i_62_ = i_61_ <<= 15;
					if (i < 0) {
						i_59_ -= i_68_ * i;
						i_58_ -= i_64_ * i;
						i_62_ -= i_69_ * i;
						i_61_ -= i_65_ * i;
						i = 0;
					}
					i_60_ <<= 16;
					i_63_ <<= 15;
					if (i_57_ < 0) {
						i_60_ -= i_66_ * i_57_;
						i_63_ -= i_67_ * i_57_;
						i_57_ = 0;
					}
					if (i != i_57_ && i_68_ < i_64_ || i == i_57_ && i_66_ > i_64_) {
						i_56_ -= i_57_;
						i_57_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_59_ >> 16, i_58_ >> 16, i_62_ >> 7, i_61_ >> 7);
							i_59_ += i_68_;
							i_58_ += i_64_;
							i_62_ += i_69_;
							i_61_ += i_65_;
							i += Renderer2D.width;
						}
						while (--i_56_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_60_ >> 16, i_58_ >> 16, i_63_ >> 7, i_61_ >> 7);
							i_60_ += i_66_;
							i_58_ += i_64_;
							i_63_ += i_67_;
							i_61_ += i_65_;
							i += Renderer2D.width;
						}
					} else {
						i_56_ -= i_57_;
						i_57_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_58_ >> 16, i_59_ >> 16, i_61_ >> 7, i_62_ >> 7);
							i_59_ += i_68_;
							i_58_ += i_64_;
							i_62_ += i_69_;
							i_61_ += i_65_;
							i += Renderer2D.width;
						}
						while (--i_56_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels, i,
								0, 0, i_58_ >> 16, i_60_ >> 16, i_61_ >> 7, i_63_ >> 7);
							i_60_ += i_66_;
							i_58_ += i_64_;
							i_63_ += i_67_;
							i_61_ += i_65_;
							i += Renderer2D.width;
						}
					}
				}
			}
		} else if (i_56_ <= i_57_) {
			if (i_56_ < Renderer2D.bottomY) {
				if (i_57_ > Renderer2D.bottomY) {
					i_57_ = Renderer2D.bottomY;
				}
				if (i > Renderer2D.bottomY) {
					i = Renderer2D.bottomY;
				}
				if (i_57_ < i) {
					i_58_ = i_59_ <<= 16;
					i_61_ = i_62_ <<= 15;
					if (i_56_ < 0) {
						i_58_ -= i_64_ * i_56_;
						i_59_ -= i_66_ * i_56_;
						i_61_ -= i_65_ * i_56_;
						i_62_ -= i_67_ * i_56_;
						i_56_ = 0;
					}
					i_60_ <<= 16;
					i_63_ <<= 15;
					if (i_57_ < 0) {
						i_60_ -= i_68_ * i_57_;
						i_63_ -= i_69_ * i_57_;
						i_57_ = 0;
					}
					if (i_56_ != i_57_ && i_64_ < i_66_ || i_56_ == i_57_ && i_64_ > i_68_) {
						i -= i_57_;
						i_57_ -= i_56_;
						i_56_ = Renderer3D.anIntArray1538[i_56_];
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_58_ >> 16, i_59_ >> 16, i_61_ >> 7, i_62_ >> 7);
							i_58_ += i_64_;
							i_59_ += i_66_;
							i_61_ += i_65_;
							i_62_ += i_67_;
							i_56_ += Renderer2D.width;
						}
						while (--i >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_58_ >> 16, i_60_ >> 16, i_61_ >> 7, i_63_ >> 7);
							i_58_ += i_64_;
							i_60_ += i_68_;
							i_61_ += i_65_;
							i_63_ += i_69_;
							i_56_ += Renderer2D.width;
						}
					} else {
						i -= i_57_;
						i_57_ -= i_56_;
						i_56_ = Renderer3D.anIntArray1538[i_56_];
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_59_ >> 16, i_58_ >> 16, i_62_ >> 7, i_61_ >> 7);
							i_58_ += i_64_;
							i_59_ += i_66_;
							i_61_ += i_65_;
							i_62_ += i_67_;
							i_56_ += Renderer2D.width;
						}
						while (--i >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_60_ >> 16, i_58_ >> 16, i_63_ >> 7, i_61_ >> 7);
							i_58_ += i_64_;
							i_60_ += i_68_;
							i_61_ += i_65_;
							i_63_ += i_69_;
							i_56_ += Renderer2D.width;
						}
					}
				} else {
					i_60_ = i_59_ <<= 16;
					i_63_ = i_62_ <<= 15;
					if (i_56_ < 0) {
						i_60_ -= i_64_ * i_56_;
						i_59_ -= i_66_ * i_56_;
						i_63_ -= i_65_ * i_56_;
						i_62_ -= i_67_ * i_56_;
						i_56_ = 0;
					}
					i_58_ <<= 16;
					i_61_ <<= 15;
					if (i < 0) {
						i_58_ -= i_68_ * i;
						i_61_ -= i_69_ * i;
						i = 0;
					}
					if (i_64_ < i_66_) {
						i_57_ -= i;
						i -= i_56_;
						i_56_ = Renderer3D.anIntArray1538[i_56_];
						while (--i >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_60_ >> 16, i_59_ >> 16, i_63_ >> 7, i_62_ >> 7);
							i_60_ += i_64_;
							i_59_ += i_66_;
							i_63_ += i_65_;
							i_62_ += i_67_;
							i_56_ += Renderer2D.width;
						}
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_58_ >> 16, i_59_ >> 16, i_61_ >> 7, i_62_ >> 7);
							i_58_ += i_68_;
							i_59_ += i_66_;
							i_61_ += i_69_;
							i_62_ += i_67_;
							i_56_ += Renderer2D.width;
						}
					} else {
						i_57_ -= i;
						i -= i_56_;
						i_56_ = Renderer3D.anIntArray1538[i_56_];
						while (--i >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_59_ >> 16, i_60_ >> 16, i_62_ >> 7, i_63_ >> 7);
							i_60_ += i_64_;
							i_59_ += i_66_;
							i_63_ += i_65_;
							i_62_ += i_67_;
							i_56_ += Renderer2D.width;
						}
						while (--i_57_ >= 0) {
							Renderer3D.method515(Renderer2D.pixels,
								i_56_, 0, 0, i_59_ >> 16, i_58_ >> 16, i_62_ >> 7, i_61_ >> 7);
							i_58_ += i_68_;
							i_59_ += i_66_;
							i_61_ += i_69_;
							i_62_ += i_67_;
							i_56_ += Renderer2D.width;
						}
					}
				}
			}
		} else if (i_57_ < Renderer2D.bottomY) {
			if (i > Renderer2D.bottomY) {
				i = Renderer2D.bottomY;
			}
			if (i_56_ > Renderer2D.bottomY) {
				i_56_ = Renderer2D.bottomY;
			}
			if (i < i_56_) {
				i_59_ = i_60_ <<= 16;
				i_62_ = i_63_ <<= 15;
				if (i_57_ < 0) {
					i_59_ -= i_66_ * i_57_;
					i_60_ -= i_68_ * i_57_;
					i_62_ -= i_67_ * i_57_;
					i_63_ -= i_69_ * i_57_;
					i_57_ = 0;
				}
				i_58_ <<= 16;
				i_61_ <<= 15;
				if (i < 0) {
					i_58_ -= i_64_ * i;
					i_61_ -= i_65_ * i;
					i = 0;
				}
				if (i_66_ < i_68_) {
					i_56_ -= i;
					i -= i_57_;
					i_57_ = Renderer3D.anIntArray1538[i_57_];
					while (--i >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_59_ >> 16, i_60_ >> 16, i_62_ >> 7, i_63_ >> 7);
						i_59_ += i_66_;
						i_60_ += i_68_;
						i_62_ += i_67_;
						i_63_ += i_69_;
						i_57_ += Renderer2D.width;
					}
					while (--i_56_ >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_59_ >> 16, i_58_ >> 16, i_62_ >> 7, i_61_ >> 7);
						i_59_ += i_66_;
						i_58_ += i_64_;
						i_62_ += i_67_;
						i_61_ += i_65_;
						i_57_ += Renderer2D.width;
					}
				} else {
					i_56_ -= i;
					i -= i_57_;
					i_57_ = Renderer3D.anIntArray1538[i_57_];
					while (--i >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_60_ >> 16, i_59_ >> 16, i_63_ >> 7, i_62_ >> 7);
						i_59_ += i_66_;
						i_60_ += i_68_;
						i_62_ += i_67_;
						i_63_ += i_69_;
						i_57_ += Renderer2D.width;
					}
					while (--i_56_ >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_58_ >> 16, i_59_ >> 16, i_61_ >> 7, i_62_ >> 7);
						i_59_ += i_66_;
						i_58_ += i_64_;
						i_62_ += i_67_;
						i_61_ += i_65_;
						i_57_ += Renderer2D.width;
					}
				}
			} else {
				i_58_ = i_60_ <<= 16;
				i_61_ = i_63_ <<= 15;
				if (i_57_ < 0) {
					i_58_ -= i_66_ * i_57_;
					i_60_ -= i_68_ * i_57_;
					i_61_ -= i_67_ * i_57_;
					i_63_ -= i_69_ * i_57_;
					i_57_ = 0;
				}
				i_59_ <<= 16;
				i_62_ <<= 15;
				if (i_56_ < 0) {
					i_59_ -= i_64_ * i_56_;
					i_62_ -= i_65_ * i_56_;
					i_56_ = 0;
				}
				if (i_66_ < i_68_) {
					i -= i_56_;
					i_56_ -= i_57_;
					i_57_ = Renderer3D.anIntArray1538[i_57_];
					while (--i_56_ >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_58_ >> 16, i_60_ >> 16, i_61_ >> 7, i_63_ >> 7);
						i_58_ += i_66_;
						i_60_ += i_68_;
						i_61_ += i_67_;
						i_63_ += i_69_;
						i_57_ += Renderer2D.width;
					}
					while (--i >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_59_ >> 16, i_60_ >> 16, i_62_ >> 7, i_63_ >> 7);
						i_59_ += i_64_;
						i_60_ += i_68_;
						i_62_ += i_65_;
						i_63_ += i_69_;
						i_57_ += Renderer2D.width;
					}
				} else {
					i -= i_56_;
					i_56_ -= i_57_;
					i_57_ = Renderer3D.anIntArray1538[i_57_];
					while (--i_56_ >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_60_ >> 16, i_58_ >> 16, i_63_ >> 7, i_61_ >> 7);
						i_58_ += i_66_;
						i_60_ += i_68_;
						i_61_ += i_67_;
						i_63_ += i_69_;
						i_57_ += Renderer2D.width;
					}
					while (--i >= 0) {
						Renderer3D.method515(Renderer2D.pixels, i_57_,
							0, 0, i_60_ >> 16, i_59_ >> 16, i_63_ >> 7, i_62_ >> 7);
						i_59_ += i_64_;
						i_60_ += i_68_;
						i_62_ += i_65_;
						i_63_ += i_69_;
						i_57_ += Renderer2D.width;
					}
				}
			}
		}
	}

	public static final void method515(int[] is, int i, int i_70_, int i_71_, int i_72_, int i_73_,
		int i_74_, int i_75_) {
		if (Renderer3D.aBoolean1530) {
			int i_76_;
			if (Renderer3D.aBoolean1528) {
				if (i_73_ - i_72_ > 3) {
					i_76_ = (i_75_ - i_74_) / (i_73_ - i_72_);
				} else {
					i_76_ = 0;
				}
				if (i_73_ > Renderer2D.endX) {
					i_73_ = Renderer2D.endX;
				}
				if (i_72_ < 0) {
					i_74_ -= i_72_ * i_76_;
					i_72_ = 0;
				}
				if (i_72_ >= i_73_) {
					return;
				}
				i += i_72_;
				i_71_ = i_73_ - i_72_ >> 2;
				i_76_ <<= 2;
			} else {
				if (i_72_ >= i_73_) {
					return;
				}
				i += i_72_;
				i_71_ = i_73_ - i_72_ >> 2;
				if (i_71_ > 0) {
					i_76_ = (i_75_ - i_74_) * Renderer3D.anIntArray1534[i_71_] >> 15;
				} else {
					i_76_ = 0;
				}
			}
			if (Renderer3D.anInt1531 == 0) {
				while (--i_71_ >= 0) {
					i_70_ = Renderer3D.anIntArray1548[i_74_ >> 8];
					i_74_ += i_76_;
					is[i++] = i_70_;
					is[i++] = i_70_;
					is[i++] = i_70_;
					is[i++] = i_70_;
				}
				i_71_ = i_73_ - i_72_ & 0x3;
				if (i_71_ > 0) {
					i_70_ = Renderer3D.anIntArray1548[i_74_ >> 8];
					do {
						is[i++] = i_70_;
					} while (--i_71_ > 0);
				}
			} else {
				int i_77_ = Renderer3D.anInt1531;
				int i_78_ = 256 - Renderer3D.anInt1531;
				while (--i_71_ >= 0) {
					i_70_ = Renderer3D.anIntArray1548[i_74_ >> 8];
					i_74_ += i_76_;
					i_70_ = (((i_70_ & 0xff00ff) * i_78_ >> 8 & 0xff00ff) + ((i_70_ & 0xff00)
						* i_78_ >> 8 & 0xff00));
					is[i++] = (i_70_ + ((is[i] & 0xff00ff) * i_77_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_77_ >> 8 & 0xff00));
					is[i++] = (i_70_ + ((is[i] & 0xff00ff) * i_77_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_77_ >> 8 & 0xff00));
					is[i++] = (i_70_ + ((is[i] & 0xff00ff) * i_77_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_77_ >> 8 & 0xff00));
					is[i++] = (i_70_ + ((is[i] & 0xff00ff) * i_77_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_77_ >> 8 & 0xff00));
				}
				i_71_ = i_73_ - i_72_ & 0x3;
				if (i_71_ > 0) {
					i_70_ = Renderer3D.anIntArray1548[i_74_ >> 8];
					i_70_ = (((i_70_ & 0xff00ff) * i_78_ >> 8 & 0xff00ff) + ((i_70_ & 0xff00)
						* i_78_ >> 8 & 0xff00));
					do {
						is[i++] = (i_70_ + ((is[i] & 0xff00ff) * i_77_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
							* i_77_ >> 8 & 0xff00));
					} while (--i_71_ > 0);
				}
			}
		} else if (i_72_ < i_73_) {
			int i_79_ = (i_75_ - i_74_) / (i_73_ - i_72_);
			if (Renderer3D.aBoolean1528) {
				if (i_73_ > Renderer2D.endX) {
					i_73_ = Renderer2D.endX;
				}
				if (i_72_ < 0) {
					i_74_ -= i_72_ * i_79_;
					i_72_ = 0;
				}
				if (i_72_ >= i_73_) {
					return;
				}
			}
			i += i_72_;
			i_71_ = i_73_ - i_72_;
			if (Renderer3D.anInt1531 == 0) {
				do {
					is[i++] = Renderer3D.anIntArray1548[i_74_ >> 8];
					i_74_ += i_79_;
				} while (--i_71_ > 0);
			} else {
				int i_80_ = Renderer3D.anInt1531;
				int i_81_ = 256 - Renderer3D.anInt1531;
				do {
					i_70_ = Renderer3D.anIntArray1548[i_74_ >> 8];
					i_74_ += i_79_;
					i_70_ = (((i_70_ & 0xff00ff) * i_81_ >> 8 & 0xff00ff) + ((i_70_ & 0xff00)
						* i_81_ >> 8 & 0xff00));
					is[i++] = (i_70_ + ((is[i] & 0xff00ff) * i_80_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_80_ >> 8 & 0xff00));
				} while (--i_71_ > 0);
			}
		}
	}

	public static final void method516(int i, int i_82_, int i_83_, int i_84_, int i_85_,
		int i_86_, int i_87_) {
		int i_88_ = 0;
		if (i_82_ != i) {
			i_88_ = (i_85_ - i_84_ << 16) / (i_82_ - i);
		}
		int i_89_ = 0;
		if (i_83_ != i_82_) {
			i_89_ = (i_86_ - i_85_ << 16) / (i_83_ - i_82_);
		}
		int i_90_ = 0;
		if (i_83_ != i) {
			i_90_ = (i_84_ - i_86_ << 16) / (i - i_83_);
		}
		if (i <= i_82_ && i <= i_83_) {
			if (i < Renderer2D.bottomY) {
				if (i_82_ > Renderer2D.bottomY) {
					i_82_ = Renderer2D.bottomY;
				}
				if (i_83_ > Renderer2D.bottomY) {
					i_83_ = Renderer2D.bottomY;
				}
				if (i_82_ < i_83_) {
					i_86_ = i_84_ <<= 16;
					if (i < 0) {
						i_86_ -= i_90_ * i;
						i_84_ -= i_88_ * i;
						i = 0;
					}
					i_85_ <<= 16;
					if (i_82_ < 0) {
						i_85_ -= i_89_ * i_82_;
						i_82_ = 0;
					}
					if (i != i_82_ && i_90_ < i_88_ || i == i_82_ && i_90_ > i_89_) {
						i_83_ -= i_82_;
						i_82_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_82_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_86_ >> 16, i_84_ >> 16);
							i_86_ += i_90_;
							i_84_ += i_88_;
							i += Renderer2D.width;
						}
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_86_ >> 16, i_85_ >> 16);
							i_86_ += i_90_;
							i_85_ += i_89_;
							i += Renderer2D.width;
						}
					} else {
						i_83_ -= i_82_;
						i_82_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_82_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_84_ >> 16, i_86_ >> 16);
							i_86_ += i_90_;
							i_84_ += i_88_;
							i += Renderer2D.width;
						}
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_85_ >> 16, i_86_ >> 16);
							i_86_ += i_90_;
							i_85_ += i_89_;
							i += Renderer2D.width;
						}
					}
				} else {
					i_85_ = i_84_ <<= 16;
					if (i < 0) {
						i_85_ -= i_90_ * i;
						i_84_ -= i_88_ * i;
						i = 0;
					}
					i_86_ <<= 16;
					if (i_83_ < 0) {
						i_86_ -= i_89_ * i_83_;
						i_83_ = 0;
					}
					if (i != i_83_ && i_90_ < i_88_ || i == i_83_ && i_89_ > i_88_) {
						i_82_ -= i_83_;
						i_83_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_85_ >> 16, i_84_ >> 16);
							i_85_ += i_90_;
							i_84_ += i_88_;
							i += Renderer2D.width;
						}
						while (--i_82_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_86_ >> 16, i_84_ >> 16);
							i_86_ += i_89_;
							i_84_ += i_88_;
							i += Renderer2D.width;
						}
					} else {
						i_82_ -= i_83_;
						i_83_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_84_ >> 16, i_85_ >> 16);
							i_85_ += i_90_;
							i_84_ += i_88_;
							i += Renderer2D.width;
						}
						while (--i_82_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels, i,
								i_87_, 0, i_84_ >> 16, i_86_ >> 16);
							i_86_ += i_89_;
							i_84_ += i_88_;
							i += Renderer2D.width;
						}
					}
				}
			}
		} else if (i_82_ <= i_83_) {
			if (i_82_ < Renderer2D.bottomY) {
				if (i_83_ > Renderer2D.bottomY) {
					i_83_ = Renderer2D.bottomY;
				}
				if (i > Renderer2D.bottomY) {
					i = Renderer2D.bottomY;
				}
				if (i_83_ < i) {
					i_84_ = i_85_ <<= 16;
					if (i_82_ < 0) {
						i_84_ -= i_88_ * i_82_;
						i_85_ -= i_89_ * i_82_;
						i_82_ = 0;
					}
					i_86_ <<= 16;
					if (i_83_ < 0) {
						i_86_ -= i_90_ * i_83_;
						i_83_ = 0;
					}
					if (i_82_ != i_83_ && i_88_ < i_89_ || i_82_ == i_83_ && i_88_ > i_90_) {
						i -= i_83_;
						i_83_ -= i_82_;
						i_82_ = Renderer3D.anIntArray1538[i_82_];
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_84_ >> 16, i_85_ >> 16);
							i_84_ += i_88_;
							i_85_ += i_89_;
							i_82_ += Renderer2D.width;
						}
						while (--i >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_84_ >> 16, i_86_ >> 16);
							i_84_ += i_88_;
							i_86_ += i_90_;
							i_82_ += Renderer2D.width;
						}
					} else {
						i -= i_83_;
						i_83_ -= i_82_;
						i_82_ = Renderer3D.anIntArray1538[i_82_];
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_85_ >> 16, i_84_ >> 16);
							i_84_ += i_88_;
							i_85_ += i_89_;
							i_82_ += Renderer2D.width;
						}
						while (--i >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_86_ >> 16, i_84_ >> 16);
							i_84_ += i_88_;
							i_86_ += i_90_;
							i_82_ += Renderer2D.width;
						}
					}
				} else {
					i_86_ = i_85_ <<= 16;
					if (i_82_ < 0) {
						i_86_ -= i_88_ * i_82_;
						i_85_ -= i_89_ * i_82_;
						i_82_ = 0;
					}
					i_84_ <<= 16;
					if (i < 0) {
						i_84_ -= i_90_ * i;
						i = 0;
					}
					if (i_88_ < i_89_) {
						i_83_ -= i;
						i -= i_82_;
						i_82_ = Renderer3D.anIntArray1538[i_82_];
						while (--i >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_86_ >> 16, i_85_ >> 16);
							i_86_ += i_88_;
							i_85_ += i_89_;
							i_82_ += Renderer2D.width;
						}
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_84_ >> 16, i_85_ >> 16);
							i_84_ += i_90_;
							i_85_ += i_89_;
							i_82_ += Renderer2D.width;
						}
					} else {
						i_83_ -= i;
						i -= i_82_;
						i_82_ = Renderer3D.anIntArray1538[i_82_];
						while (--i >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_85_ >> 16, i_86_ >> 16);
							i_86_ += i_88_;
							i_85_ += i_89_;
							i_82_ += Renderer2D.width;
						}
						while (--i_83_ >= 0) {
							Renderer3D.method517(Renderer2D.pixels,
								i_82_, i_87_, 0, i_85_ >> 16, i_84_ >> 16);
							i_84_ += i_90_;
							i_85_ += i_89_;
							i_82_ += Renderer2D.width;
						}
					}
				}
			}
		} else if (i_83_ < Renderer2D.bottomY) {
			if (i > Renderer2D.bottomY) {
				i = Renderer2D.bottomY;
			}
			if (i_82_ > Renderer2D.bottomY) {
				i_82_ = Renderer2D.bottomY;
			}
			if (i < i_82_) {
				i_85_ = i_86_ <<= 16;
				if (i_83_ < 0) {
					i_85_ -= i_89_ * i_83_;
					i_86_ -= i_90_ * i_83_;
					i_83_ = 0;
				}
				i_84_ <<= 16;
				if (i < 0) {
					i_84_ -= i_88_ * i;
					i = 0;
				}
				if (i_89_ < i_90_) {
					i_82_ -= i;
					i -= i_83_;
					i_83_ = Renderer3D.anIntArray1538[i_83_];
					while (--i >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_85_ >> 16, i_86_ >> 16);
						i_85_ += i_89_;
						i_86_ += i_90_;
						i_83_ += Renderer2D.width;
					}
					while (--i_82_ >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_85_ >> 16, i_84_ >> 16);
						i_85_ += i_89_;
						i_84_ += i_88_;
						i_83_ += Renderer2D.width;
					}
				} else {
					i_82_ -= i;
					i -= i_83_;
					i_83_ = Renderer3D.anIntArray1538[i_83_];
					while (--i >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_86_ >> 16, i_85_ >> 16);
						i_85_ += i_89_;
						i_86_ += i_90_;
						i_83_ += Renderer2D.width;
					}
					while (--i_82_ >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_84_ >> 16, i_85_ >> 16);
						i_85_ += i_89_;
						i_84_ += i_88_;
						i_83_ += Renderer2D.width;
					}
				}
			} else {
				i_84_ = i_86_ <<= 16;
				if (i_83_ < 0) {
					i_84_ -= i_89_ * i_83_;
					i_86_ -= i_90_ * i_83_;
					i_83_ = 0;
				}
				i_85_ <<= 16;
				if (i_82_ < 0) {
					i_85_ -= i_88_ * i_82_;
					i_82_ = 0;
				}
				if (i_89_ < i_90_) {
					i -= i_82_;
					i_82_ -= i_83_;
					i_83_ = Renderer3D.anIntArray1538[i_83_];
					while (--i_82_ >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_84_ >> 16, i_86_ >> 16);
						i_84_ += i_89_;
						i_86_ += i_90_;
						i_83_ += Renderer2D.width;
					}
					while (--i >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_85_ >> 16, i_86_ >> 16);
						i_85_ += i_88_;
						i_86_ += i_90_;
						i_83_ += Renderer2D.width;
					}
				} else {
					i -= i_82_;
					i_82_ -= i_83_;
					i_83_ = Renderer3D.anIntArray1538[i_83_];
					while (--i_82_ >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_86_ >> 16, i_84_ >> 16);
						i_84_ += i_89_;
						i_86_ += i_90_;
						i_83_ += Renderer2D.width;
					}
					while (--i >= 0) {
						Renderer3D.method517(Renderer2D.pixels, i_83_,
							i_87_, 0, i_86_ >> 16, i_85_ >> 16);
						i_85_ += i_88_;
						i_86_ += i_90_;
						i_83_ += Renderer2D.width;
					}
				}
			}
		}
	}

	public static final void method517(int[] is, int i, int i_91_, int i_92_, int i_93_, int i_94_) {
		if (Renderer3D.aBoolean1528) {
			if (i_94_ > Renderer2D.endX) {
				i_94_ = Renderer2D.endX;
			}
			if (i_93_ < 0) {
				i_93_ = 0;
			}
		}
		if (i_93_ < i_94_) {
			i += i_93_;
			i_92_ = i_94_ - i_93_ >> 2;
			if (Renderer3D.anInt1531 == 0) {
				while (--i_92_ >= 0) {
					is[i++] = i_91_;
					is[i++] = i_91_;
					is[i++] = i_91_;
					is[i++] = i_91_;
				}
				i_92_ = i_94_ - i_93_ & 0x3;
				while (--i_92_ >= 0) {
					is[i++] = i_91_;
				}
			} else {
				int i_95_ = Renderer3D.anInt1531;
				int i_96_ = 256 - Renderer3D.anInt1531;
				i_91_ = (((i_91_ & 0xff00ff) * i_96_ >> 8 & 0xff00ff) + ((i_91_ & 0xff00) * i_96_ >> 8 & 0xff00));
				while (--i_92_ >= 0) {
					is[i++] = (i_91_ + ((is[i] & 0xff00ff) * i_95_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_95_ >> 8 & 0xff00));
					is[i++] = (i_91_ + ((is[i] & 0xff00ff) * i_95_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_95_ >> 8 & 0xff00));
					is[i++] = (i_91_ + ((is[i] & 0xff00ff) * i_95_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_95_ >> 8 & 0xff00));
					is[i++] = (i_91_ + ((is[i] & 0xff00ff) * i_95_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_95_ >> 8 & 0xff00));
				}
				i_92_ = i_94_ - i_93_ & 0x3;
				while (--i_92_ >= 0) {
					is[i++] = (i_91_ + ((is[i] & 0xff00ff) * i_95_ >> 8 & 0xff00ff) + ((is[i] & 0xff00)
						* i_95_ >> 8 & 0xff00));
				}
			}
		}
	}

	public static final void method518(int i, int i_97_, int i_98_, int i_99_, int i_100_,
		int i_101_, int i_102_, int i_103_, int i_104_, int i_105_, int i_106_, int i_107_,
		int i_108_, int i_109_, int i_110_, int i_111_, int i_112_, int i_113_, int i_114_) {
		int[] is = Renderer3D.method511(i_114_);
		Renderer3D.aBoolean1529 = !Renderer3D.aBooleanArray1541[i_114_];
		i_106_ = i_105_ - i_106_;
		i_109_ = i_108_ - i_109_;
		i_112_ = i_111_ - i_112_;
		i_107_ -= i_105_;
		i_110_ -= i_108_;
		i_113_ -= i_111_;
		int i_115_ = i_107_ * i_108_ - i_110_ * i_105_ << 14;
		int i_116_ = i_110_ * i_111_ - i_113_ * i_108_ << 8;
		int i_117_ = i_113_ * i_105_ - i_107_ * i_111_ << 5;
		int i_118_ = i_106_ * i_108_ - i_109_ * i_105_ << 14;
		int i_119_ = i_109_ * i_111_ - i_112_ * i_108_ << 8;
		int i_120_ = i_112_ * i_105_ - i_106_ * i_111_ << 5;
		int i_121_ = i_109_ * i_107_ - i_106_ * i_110_ << 14;
		int i_122_ = i_112_ * i_110_ - i_109_ * i_113_ << 8;
		int i_123_ = i_106_ * i_113_ - i_112_ * i_107_ << 5;
		int i_124_ = 0;
		int i_125_ = 0;
		if (i_97_ != i) {
			i_124_ = (i_100_ - i_99_ << 16) / (i_97_ - i);
			i_125_ = (i_103_ - i_102_ << 16) / (i_97_ - i);
		}
		int i_126_ = 0;
		int i_127_ = 0;
		if (i_98_ != i_97_) {
			i_126_ = (i_101_ - i_100_ << 16) / (i_98_ - i_97_);
			i_127_ = (i_104_ - i_103_ << 16) / (i_98_ - i_97_);
		}
		int i_128_ = 0;
		int i_129_ = 0;
		if (i_98_ != i) {
			i_128_ = (i_99_ - i_101_ << 16) / (i - i_98_);
			i_129_ = (i_102_ - i_104_ << 16) / (i - i_98_);
		}
		if (i <= i_97_ && i <= i_98_) {
			if (i < Renderer2D.bottomY) {
				if (i_97_ > Renderer2D.bottomY) {
					i_97_ = Renderer2D.bottomY;
				}
				if (i_98_ > Renderer2D.bottomY) {
					i_98_ = Renderer2D.bottomY;
				}
				if (i_97_ < i_98_) {
					i_101_ = i_99_ <<= 16;
					i_104_ = i_102_ <<= 16;
					if (i < 0) {
						i_101_ -= i_128_ * i;
						i_99_ -= i_124_ * i;
						i_104_ -= i_129_ * i;
						i_102_ -= i_125_ * i;
						i = 0;
					}
					i_100_ <<= 16;
					i_103_ <<= 16;
					if (i_97_ < 0) {
						i_100_ -= i_126_ * i_97_;
						i_103_ -= i_127_ * i_97_;
						i_97_ = 0;
					}
					int i_130_ = i - Renderer3D.anInt1533;
					i_115_ += i_117_ * i_130_;
					i_118_ += i_120_ * i_130_;
					i_121_ += i_123_ * i_130_;
					if (i != i_97_ && i_128_ < i_124_ || i == i_97_ && i_128_ > i_126_) {
						i_98_ -= i_97_;
						i_97_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_97_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_101_ >> 16, i_99_ >> 16, i_104_ >> 8, i_102_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_128_;
							i_99_ += i_124_;
							i_104_ += i_129_;
							i_102_ += i_125_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_101_ >> 16, i_100_ >> 16, i_104_ >> 8, i_103_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_128_;
							i_100_ += i_126_;
							i_104_ += i_129_;
							i_103_ += i_127_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					} else {
						i_98_ -= i_97_;
						i_97_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_97_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_99_ >> 16, i_101_ >> 16, i_102_ >> 8, i_104_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_128_;
							i_99_ += i_124_;
							i_104_ += i_129_;
							i_102_ += i_125_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_100_ >> 16, i_101_ >> 16, i_103_ >> 8, i_104_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_128_;
							i_100_ += i_126_;
							i_104_ += i_129_;
							i_103_ += i_127_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					}
				} else {
					i_100_ = i_99_ <<= 16;
					i_103_ = i_102_ <<= 16;
					if (i < 0) {
						i_100_ -= i_128_ * i;
						i_99_ -= i_124_ * i;
						i_103_ -= i_129_ * i;
						i_102_ -= i_125_ * i;
						i = 0;
					}
					i_101_ <<= 16;
					i_104_ <<= 16;
					if (i_98_ < 0) {
						i_101_ -= i_126_ * i_98_;
						i_104_ -= i_127_ * i_98_;
						i_98_ = 0;
					}
					int i_131_ = i - Renderer3D.anInt1533;
					i_115_ += i_117_ * i_131_;
					i_118_ += i_120_ * i_131_;
					i_121_ += i_123_ * i_131_;
					if (i != i_98_ && i_128_ < i_124_ || i == i_98_ && i_126_ > i_124_) {
						i_97_ -= i_98_;
						i_98_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_100_ >> 16, i_99_ >> 16, i_103_ >> 8, i_102_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_100_ += i_128_;
							i_99_ += i_124_;
							i_103_ += i_129_;
							i_102_ += i_125_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i_97_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_101_ >> 16, i_99_ >> 16, i_104_ >> 8, i_102_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_126_;
							i_99_ += i_124_;
							i_104_ += i_127_;
							i_102_ += i_125_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					} else {
						i_97_ -= i_98_;
						i_98_ -= i;
						i = Renderer3D.anIntArray1538[i];
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_99_ >> 16, i_100_ >> 16, i_102_ >> 8, i_103_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_100_ += i_128_;
							i_99_ += i_124_;
							i_103_ += i_129_;
							i_102_ += i_125_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i_97_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i, i_99_ >> 16, i_101_ >> 16, i_102_ >> 8, i_104_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_126_;
							i_99_ += i_124_;
							i_104_ += i_127_;
							i_102_ += i_125_;
							i += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					}
				}
			}
		} else if (i_97_ <= i_98_) {
			if (i_97_ < Renderer2D.bottomY) {
				if (i_98_ > Renderer2D.bottomY) {
					i_98_ = Renderer2D.bottomY;
				}
				if (i > Renderer2D.bottomY) {
					i = Renderer2D.bottomY;
				}
				if (i_98_ < i) {
					i_99_ = i_100_ <<= 16;
					i_102_ = i_103_ <<= 16;
					if (i_97_ < 0) {
						i_99_ -= i_124_ * i_97_;
						i_100_ -= i_126_ * i_97_;
						i_102_ -= i_125_ * i_97_;
						i_103_ -= i_127_ * i_97_;
						i_97_ = 0;
					}
					i_101_ <<= 16;
					i_104_ <<= 16;
					if (i_98_ < 0) {
						i_101_ -= i_128_ * i_98_;
						i_104_ -= i_129_ * i_98_;
						i_98_ = 0;
					}
					int i_132_ = i_97_ - Renderer3D.anInt1533;
					i_115_ += i_117_ * i_132_;
					i_118_ += i_120_ * i_132_;
					i_121_ += i_123_ * i_132_;
					if (i_97_ != i_98_ && i_124_ < i_126_ || i_97_ == i_98_ && i_124_ > i_128_) {
						i -= i_98_;
						i_98_ -= i_97_;
						i_97_ = Renderer3D.anIntArray1538[i_97_];
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_99_ >> 16, i_100_ >> 16, i_102_ >> 8, i_103_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_99_ += i_124_;
							i_100_ += i_126_;
							i_102_ += i_125_;
							i_103_ += i_127_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_99_ >> 16, i_101_ >> 16, i_102_ >> 8, i_104_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_99_ += i_124_;
							i_101_ += i_128_;
							i_102_ += i_125_;
							i_104_ += i_129_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					} else {
						i -= i_98_;
						i_98_ -= i_97_;
						i_97_ = Renderer3D.anIntArray1538[i_97_];
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_100_ >> 16, i_99_ >> 16, i_103_ >> 8, i_102_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_99_ += i_124_;
							i_100_ += i_126_;
							i_102_ += i_125_;
							i_103_ += i_127_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_101_ >> 16, i_99_ >> 16, i_104_ >> 8, i_102_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_99_ += i_124_;
							i_101_ += i_128_;
							i_102_ += i_125_;
							i_104_ += i_129_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					}
				} else {
					i_101_ = i_100_ <<= 16;
					i_104_ = i_103_ <<= 16;
					if (i_97_ < 0) {
						i_101_ -= i_124_ * i_97_;
						i_100_ -= i_126_ * i_97_;
						i_104_ -= i_125_ * i_97_;
						i_103_ -= i_127_ * i_97_;
						i_97_ = 0;
					}
					i_99_ <<= 16;
					i_102_ <<= 16;
					if (i < 0) {
						i_99_ -= i_128_ * i;
						i_102_ -= i_129_ * i;
						i = 0;
					}
					int i_133_ = i_97_ - Renderer3D.anInt1533;
					i_115_ += i_117_ * i_133_;
					i_118_ += i_120_ * i_133_;
					i_121_ += i_123_ * i_133_;
					if (i_124_ < i_126_) {
						i_98_ -= i;
						i -= i_97_;
						i_97_ = Renderer3D.anIntArray1538[i_97_];
						while (--i >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_101_ >> 16, i_100_ >> 16, i_104_ >> 8, i_103_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_124_;
							i_100_ += i_126_;
							i_104_ += i_125_;
							i_103_ += i_127_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_99_ >> 16, i_100_ >> 16, i_102_ >> 8, i_103_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_99_ += i_128_;
							i_100_ += i_126_;
							i_102_ += i_129_;
							i_103_ += i_127_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					} else {
						i_98_ -= i;
						i -= i_97_;
						i_97_ = Renderer3D.anIntArray1538[i_97_];
						while (--i >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_100_ >> 16, i_101_ >> 16, i_103_ >> 8, i_104_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_101_ += i_124_;
							i_100_ += i_126_;
							i_104_ += i_125_;
							i_103_ += i_127_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
						while (--i_98_ >= 0) {
							Renderer3D.method519(Renderer2D.pixels, is,
								0, 0, i_97_, i_100_ >> 16, i_99_ >> 16, i_103_ >> 8, i_102_ >> 8,
								i_115_, i_118_, i_121_, i_116_, i_119_, i_122_);
							i_99_ += i_128_;
							i_100_ += i_126_;
							i_102_ += i_129_;
							i_103_ += i_127_;
							i_97_ += Renderer2D.width;
							i_115_ += i_117_;
							i_118_ += i_120_;
							i_121_ += i_123_;
						}
					}
				}
			}
		} else if (i_98_ < Renderer2D.bottomY) {
			if (i > Renderer2D.bottomY) {
				i = Renderer2D.bottomY;
			}
			if (i_97_ > Renderer2D.bottomY) {
				i_97_ = Renderer2D.bottomY;
			}
			if (i < i_97_) {
				i_100_ = i_101_ <<= 16;
				i_103_ = i_104_ <<= 16;
				if (i_98_ < 0) {
					i_100_ -= i_126_ * i_98_;
					i_101_ -= i_128_ * i_98_;
					i_103_ -= i_127_ * i_98_;
					i_104_ -= i_129_ * i_98_;
					i_98_ = 0;
				}
				i_99_ <<= 16;
				i_102_ <<= 16;
				if (i < 0) {
					i_99_ -= i_124_ * i;
					i_102_ -= i_125_ * i;
					i = 0;
				}
				int i_134_ = i_98_ - Renderer3D.anInt1533;
				i_115_ += i_117_ * i_134_;
				i_118_ += i_120_ * i_134_;
				i_121_ += i_123_ * i_134_;
				if (i_126_ < i_128_) {
					i_97_ -= i;
					i -= i_98_;
					i_98_ = Renderer3D.anIntArray1538[i_98_];
					while (--i >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_100_ >> 16, i_101_ >> 16, i_103_ >> 8, i_104_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_100_ += i_126_;
						i_101_ += i_128_;
						i_103_ += i_127_;
						i_104_ += i_129_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
					while (--i_97_ >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_100_ >> 16, i_99_ >> 16, i_103_ >> 8, i_102_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_100_ += i_126_;
						i_99_ += i_124_;
						i_103_ += i_127_;
						i_102_ += i_125_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
				} else {
					i_97_ -= i;
					i -= i_98_;
					i_98_ = Renderer3D.anIntArray1538[i_98_];
					while (--i >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_101_ >> 16, i_100_ >> 16, i_104_ >> 8, i_103_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_100_ += i_126_;
						i_101_ += i_128_;
						i_103_ += i_127_;
						i_104_ += i_129_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
					while (--i_97_ >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_99_ >> 16, i_100_ >> 16, i_102_ >> 8, i_103_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_100_ += i_126_;
						i_99_ += i_124_;
						i_103_ += i_127_;
						i_102_ += i_125_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
				}
			} else {
				i_99_ = i_101_ <<= 16;
				i_102_ = i_104_ <<= 16;
				if (i_98_ < 0) {
					i_99_ -= i_126_ * i_98_;
					i_101_ -= i_128_ * i_98_;
					i_102_ -= i_127_ * i_98_;
					i_104_ -= i_129_ * i_98_;
					i_98_ = 0;
				}
				i_100_ <<= 16;
				i_103_ <<= 16;
				if (i_97_ < 0) {
					i_100_ -= i_124_ * i_97_;
					i_103_ -= i_125_ * i_97_;
					i_97_ = 0;
				}
				int i_135_ = i_98_ - Renderer3D.anInt1533;
				i_115_ += i_117_ * i_135_;
				i_118_ += i_120_ * i_135_;
				i_121_ += i_123_ * i_135_;
				if (i_126_ < i_128_) {
					i -= i_97_;
					i_97_ -= i_98_;
					i_98_ = Renderer3D.anIntArray1538[i_98_];
					while (--i_97_ >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_99_ >> 16, i_101_ >> 16, i_102_ >> 8, i_104_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_99_ += i_126_;
						i_101_ += i_128_;
						i_102_ += i_127_;
						i_104_ += i_129_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
					while (--i >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_100_ >> 16, i_101_ >> 16, i_103_ >> 8, i_104_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_100_ += i_124_;
						i_101_ += i_128_;
						i_103_ += i_125_;
						i_104_ += i_129_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
				} else {
					i -= i_97_;
					i_97_ -= i_98_;
					i_98_ = Renderer3D.anIntArray1538[i_98_];
					while (--i_97_ >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_101_ >> 16, i_99_ >> 16, i_104_ >> 8, i_102_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_99_ += i_126_;
						i_101_ += i_128_;
						i_102_ += i_127_;
						i_104_ += i_129_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
					while (--i >= 0) {
						Renderer3D.method519(Renderer2D.pixels, is, 0,
							0, i_98_, i_101_ >> 16, i_100_ >> 16, i_104_ >> 8, i_103_ >> 8, i_115_,
							i_118_, i_121_, i_116_, i_119_, i_122_);
						i_100_ += i_124_;
						i_101_ += i_128_;
						i_103_ += i_125_;
						i_104_ += i_129_;
						i_98_ += Renderer2D.width;
						i_115_ += i_117_;
						i_118_ += i_120_;
						i_121_ += i_123_;
					}
				}
			}
		}
	}

	public static final void method519(int[] is, int[] is_136_, int i, int i_137_, int i_138_,
		int i_139_, int i_140_, int i_141_, int i_142_, int i_143_, int i_144_, int i_145_,
		int i_146_, int i_147_, int i_148_) {
		if (i_139_ < i_140_) {
			int i_149_;
			int i_150_;
			if (Renderer3D.aBoolean1528) {
				i_150_ = (i_142_ - i_141_) / (i_140_ - i_139_);
				if (i_140_ > Renderer2D.endX) {
					i_140_ = Renderer2D.endX;
				}
				if (i_139_ < 0) {
					i_141_ -= i_139_ * i_150_;
					i_139_ = 0;
				}
				if (i_139_ >= i_140_) {
					return;
				}
				i_149_ = i_140_ - i_139_ >> 3;
				i_150_ <<= 12;
				i_141_ <<= 9;
			} else {
				if (i_140_ - i_139_ > 7) {
					i_149_ = i_140_ - i_139_ >> 3;
					i_150_ = (i_142_ - i_141_) * Renderer3D.anIntArray1534[i_149_] >> 6;
				} else {
					i_149_ = 0;
					i_150_ = 0;
				}
				i_141_ <<= 9;
			}
			i_138_ += i_139_;
			if (Renderer3D.aBoolean1527) {
				int i_151_ = 0;
				int i_152_ = 0;
				int i_153_ = i_139_ - Renderer3D.anInt1532;
				i_143_ += (i_146_ >> 3) * i_153_;
				i_144_ += (i_147_ >> 3) * i_153_;
				i_145_ += (i_148_ >> 3) * i_153_;
				int i_154_ = i_145_ >> 12;
				if (i_154_ != 0) {
					i = i_143_ / i_154_;
					i_137_ = i_144_ / i_154_;
					if (i < 0) {
						i = 0;
					} else if (i > 4032) {
						i = 4032;
					}
				}
				i_143_ += i_146_;
				i_144_ += i_147_;
				i_145_ += i_148_;
				i_154_ = i_145_ >> 12;
				if (i_154_ != 0) {
					i_151_ = i_143_ / i_154_;
					i_152_ = i_144_ / i_154_;
					if (i_151_ < 7) {
						i_151_ = 7;
					} else if (i_151_ > 4032) {
						i_151_ = 4032;
					}
				}
				int i_155_ = i_151_ - i >> 3;
				int i_156_ = i_152_ - i_137_ >> 3;
				i += (i_141_ & 0x600000) >> 3;
				int i_157_ = i_141_ >> 23;
				if (Renderer3D.aBoolean1529) {
					while (i_149_-- > 0) {
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i = i_151_;
						i_137_ = i_152_;
						i_143_ += i_146_;
						i_144_ += i_147_;
						i_145_ += i_148_;
						i_154_ = i_145_ >> 12;
						if (i_154_ != 0) {
							i_151_ = i_143_ / i_154_;
							i_152_ = i_144_ / i_154_;
							if (i_151_ < 7) {
								i_151_ = 7;
							} else if (i_151_ > 4032) {
								i_151_ = 4032;
							}
						}
						i_155_ = i_151_ - i >> 3;
						i_156_ = i_152_ - i_137_ >> 3;
						i_141_ += i_150_;
						i += (i_141_ & 0x600000) >> 3;
						i_157_ = i_141_ >> 23;
					}
					i_149_ = i_140_ - i_139_ & 0x7;
					while (i_149_-- > 0) {
						is[i_138_++] = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_;
						i += i_155_;
						i_137_ += i_156_;
					}
				} else {
					while (i_149_-- > 0) {
						int i_158_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
						if ((i_158_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_158_;
						}
						i_138_++;
						i = i_151_;
						i_137_ = i_152_;
						i_143_ += i_146_;
						i_144_ += i_147_;
						i_145_ += i_148_;
						i_154_ = i_145_ >> 12;
						if (i_154_ != 0) {
							i_151_ = i_143_ / i_154_;
							i_152_ = i_144_ / i_154_;
							if (i_151_ < 7) {
								i_151_ = 7;
							} else if (i_151_ > 4032) {
								i_151_ = 4032;
							}
						}
						i_155_ = i_151_ - i >> 3;
						i_156_ = i_152_ - i_137_ >> 3;
						i_141_ += i_150_;
						i += (i_141_ & 0x600000) >> 3;
						i_157_ = i_141_ >> 23;
					}
					i_149_ = i_140_ - i_139_ & 0x7;
					while (i_149_-- > 0) {
						int i_159_;
						if ((i_159_ = is_136_[(i_137_ & 0xfc0) + (i >> 6)] >>> i_157_) != 0) {
							is[i_138_] = i_159_;
						}
						i_138_++;
						i += i_155_;
						i_137_ += i_156_;
					}
				}
			} else {
				int i_160_ = 0;
				int i_161_ = 0;
				int i_162_ = i_139_ - Renderer3D.anInt1532;
				i_143_ += (i_146_ >> 3) * i_162_;
				i_144_ += (i_147_ >> 3) * i_162_;
				i_145_ += (i_148_ >> 3) * i_162_;
				int i_163_ = i_145_ >> 14;
				if (i_163_ != 0) {
					i = i_143_ / i_163_;
					i_137_ = i_144_ / i_163_;
					if (i < 0) {
						i = 0;
					} else if (i > 16256) {
						i = 16256;
					}
				}
				i_143_ += i_146_;
				i_144_ += i_147_;
				i_145_ += i_148_;
				i_163_ = i_145_ >> 14;
				if (i_163_ != 0) {
					i_160_ = i_143_ / i_163_;
					i_161_ = i_144_ / i_163_;
					if (i_160_ < 7) {
						i_160_ = 7;
					} else if (i_160_ > 16256) {
						i_160_ = 16256;
					}
				}
				int i_164_ = i_160_ - i >> 3;
				int i_165_ = i_161_ - i_137_ >> 3;
				i += i_141_ & 0x600000;
				int i_166_ = i_141_ >> 23;
				if (Renderer3D.aBoolean1529) {
					while (i_149_-- > 0) {
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i = i_160_;
						i_137_ = i_161_;
						i_143_ += i_146_;
						i_144_ += i_147_;
						i_145_ += i_148_;
						i_163_ = i_145_ >> 14;
						if (i_163_ != 0) {
							i_160_ = i_143_ / i_163_;
							i_161_ = i_144_ / i_163_;
							if (i_160_ < 7) {
								i_160_ = 7;
							} else if (i_160_ > 16256) {
								i_160_ = 16256;
							}
						}
						i_164_ = i_160_ - i >> 3;
						i_165_ = i_161_ - i_137_ >> 3;
						i_141_ += i_150_;
						i += i_141_ & 0x600000;
						i_166_ = i_141_ >> 23;
					}
					i_149_ = i_140_ - i_139_ & 0x7;
					while (i_149_-- > 0) {
						is[i_138_++] = is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_;
						i += i_164_;
						i_137_ += i_165_;
					}
				} else {
					while (i_149_-- > 0) {
						int i_167_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
						if ((i_167_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_167_;
						}
						i_138_++;
						i = i_160_;
						i_137_ = i_161_;
						i_143_ += i_146_;
						i_144_ += i_147_;
						i_145_ += i_148_;
						i_163_ = i_145_ >> 14;
						if (i_163_ != 0) {
							i_160_ = i_143_ / i_163_;
							i_161_ = i_144_ / i_163_;
							if (i_160_ < 7) {
								i_160_ = 7;
							} else if (i_160_ > 16256) {
								i_160_ = 16256;
							}
						}
						i_164_ = i_160_ - i >> 3;
						i_165_ = i_161_ - i_137_ >> 3;
						i_141_ += i_150_;
						i += i_141_ & 0x600000;
						i_166_ = i_141_ >> 23;
					}
					i_149_ = i_140_ - i_139_ & 0x7;
					while (i_149_-- > 0) {
						int i_168_;
						if ((i_168_ = (is_136_[(i_137_ & 0x3f80) + (i >> 7)] >>> i_166_)) != 0) {
							is[i_138_] = i_168_;
						}
						i_138_++;
						i += i_164_;
						i_137_ += i_165_;
					}
				}
			}
		}
	}
	static {
		for (int i = 1; i < 512; i++) {
			Renderer3D.anIntArray1534[i] = 32768 / i;
		}
		for (int i = 1; i < 2048; i++) {
			Renderer3D.anIntArray1535[i] = 65536 / i;
		}
		for (int i = 0; i < 2048; i++) {
			Renderer3D.anIntArray1536[i] = (int) (65536.0 * Math.sin(i * 0.0030679615));
			Renderer3D.anIntArray1537[i] = (int) (65536.0 * Math.cos(i * 0.0030679615));
		}
		Renderer3D.aIndexedSpriteArray1540 = new IndexedSprite[50];
		Renderer3D.aBooleanArray1541 = new boolean[50];
		Renderer3D.anIntArray1542 = new int[50];
		Renderer3D.anIntArrayArray1545 = new int[50][];
		Renderer3D.anIntArray1546 = new int[50];
		Renderer3D.anIntArray1548 = new int[65536];
		Renderer3D.anIntArrayArray1549 = new int[50][];
	}
}
